<?php

error_reporting(E_ALL);

//SQL CONFIG

$_CONFIG['host'] = "sql.mazkel.eu";
$_CONFIG['user'] = "mazkeleu75716";
$_CONFIG['pass'] = "scugnizzu";
$_CONFIG['dbname'] = "mazkeleu75716";

$_CONFIG['site'] = "";

$_CONFIG['table_sessions'] = "chd_sessions";
$_CONFIG['table_users'] = "chd_users";
$_CONFIG['table_permissions'] = "chd_permissions";
$_CONFIG['table_tickets'] = "chd_tickets";

//SESSION CONFIG

$_CONFIG['expire'] = 12000;
$_CONFIG['regexpire'] = 24; //in hours


//--------------
define('AUTH_LOGGED', 99);
define('AUTH_NOT_LOGGED', 100);

define('AUTH_USE_COOKIE', 101);
define('AUTH_USE_LINK', 103);
define('AUTH_INVALID_PARAMS', 104);
define('AUTH_LOGEDD_IN', 105);
define('AUTH_FAILED', 106);

define('REG_ERRORS', 107);
define('REG_SUCCESS', 108);
define('REG_FAILED', 109);

//DB Connect
$conn = mysql_connect($_CONFIG['host'], $_CONFIG['user'], $_CONFIG['pass']) or die('Impossibile stabilire una connessione');
mysql_select_db($_CONFIG['dbname']);

//Check fields
$_CONFIG['check_table'] = array(
	"username" => "check_username",
	"password" => "check_global",
	"mail" => "check_global"
);

?>
